package com.ktjiaoyu.yuanzihuan.repository;

import com.ktjiaoyu.yuanzihuan.bean.Article;
import com.ktjiaoyu.yuanzihuan.bean.IndexImg;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ArticleRepository extends JpaRepository<Article,Long> {

    //findByEnabledAndImgTypeOrderByImgOrderDesc
    public List<Article> findByEnabledOrderByOrderNoAsc(int enabled);
}
